<?php
class App_Module_Admin_Component_Media_Tpl_Web extends App_Module_Admin_Tpl_Base
{
    public function MediaBlock($baseUrlParams, $filterBlock, $filesBlock)
    {
        $this->baseUrlParams = $baseUrlParams;
        $this->filter = $filterBlock;
        $this->filesBlock = $filesBlock;
    	
    	Mozg::SubAction()->Add('RequiredJS', array($this, 'MediaBlockJS'), array(), 'MediaBlock');
        return $this->LeftBlock(Mozg_Lang::_('MEDIA_FILES'), $this->render('media/_block.phtml'));
    }

    public function MediaBlockJS()
    {
    	return $this->render('media/js/_block.js');
    }
}